package com.fira.api.domain.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * @author henryGui
 * @version V1.0
 * @Title: LoginDto
 * @Package com.fira.api.domain.dto
 * @Description: 微信授权认证登录DTO
 * @date 2021-10-11 下午1:38
 */
@Data
public class LoginDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String token;

    /**
     * 教师ID
     */
    private String teacherId;
    /**
     * 老师名称
     */
    private String teacherName;
    /**
     * //家长ID
     */
    private String parentId;
    private String parentName;

    /**
     * 微信相关信息
     */
    private String openId;
    private String sessionKey;
    private String unionId;


    /**
     * 手机号码
     */
    private String phone;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 权限信息
     */
    private List<String> auths = new ArrayList<>();

    /**
     * 当前租户
     */
    private String currentTenantId;

    /**
     * 租户列表
     * Key: 租户ID， Value：租户名称
     */
    private HashMap<String,String> tenants = new HashMap<>();



    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public List<String> getAuths() {
        return auths;
    }

    public void setAuths(List<String> auths) {
        this.auths = auths;
    }

    public String getCurrentTenantId() {
        return currentTenantId;
    }

    public void setCurrentTenantId(String currentTenantId) {
        this.currentTenantId = currentTenantId;
    }

    public HashMap<String, String> getTenants() {
        return tenants;
    }

    public void setTenants(HashMap<String, String> tenants) {
        this.tenants = tenants;
    }
}
